import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  // base: mode === 'development' ? '/' : './',
  server: {
    open: true,
    port: 3000,
    proxy: {
      '/api': {
        target: 'http://121.42.230.80',
        changeOrigin: true,
          ws: true,
          secure: true,

        rewrite: (path) => path.replace(/^\/api/, ' '),
      },
    },
  },
});
